﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Communergy.Common;
using System.ServiceModel;

namespace Communergy.Common
{
    [ServiceContract]
    public interface IRealtimeRepository
    {
        [OperationContract]
        void Insert_ElectricityRealtime(string meterId, List<RealtimeEnergyReading> realtimeEnergyReadings);
        [OperationContract]
        List<RealtimeEnergyReading> Get_ElectricityRealtime(string meterId, DateTime dateFrom, DateTime dateTo);
        [OperationContract]
        RealtimeEnergyReading GetLastElectricityRealtime(string meterId);
        [OperationContract]
        HistoricalEnergyReading GetCumulativeElectricityRealtime(string meterId, DateTime dateFrom, DateTime dateTo);
    }
}
